<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>天禾人才</title>
	<meta name="format-detection" content="telephone=no">
	<meta name="viewport" content="minimal-ui=yes,width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<meta name="msapplication-tap-highlight" content="no">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">

	<link rel="stylesheet" type="text/css" href="css/mui.min.css" />
	<link rel="stylesheet" type="text/css" href="css/public.css">
	<link rel="stylesheet" type="text/css" href="css/course_list.css">
	
</head>
<body>
	<div class="header">
		<div class="top">
			<div class="sn-nav-title of">所有课程</div>
		</div>
		
	</div>
	<div class="container">
		<div class="skil-info">
			<i>
				<img src="img/course_1.jpg" alt="">
			</i>
			<h2>精品课程集锦</h2>
		</div>
		<div class="row clearfix" id="main_item">

		</div>
		
	</div>

</body>

<script type="text/javascript" src="js/jquery.min.js"></script>
<script src="js/mui.js"></script>
<script src="js/base.js"></script>

<script type="text/javascript" charset="utf-8">
	mui.init({
		swipeBack: true //启用右滑关闭功能
	});

	var slider = mui("#slider");
	slider.slider({
		interval: 3000
	});
	
	var hash=window.location.hash;
	if(hash==""){
		alert("非法访问!");
		window.location.close();
	}else{
		if(hash.split("#")[0]==""){
		  var openid=hash.split("#")[1]
		  localStorage.setItem("openid",openid);
		}
	}
	
	$.ajax({
		url : "/course/select/all",
		type : "post",
		dataType : "json",
		async : false,
		success : function(data) {
			if (data.code == 0) {
				var result=data.data;
				var html="";
				for(var i=0;i<result.length;i++){
					html+="<div class='course-wrap fl'>"+
							"<a href='course_details.html#"+result[i].id+"'>"+
								"<div class='course-box'>"+        
									"<img src='img/course_logo.png' width='100%'>"+
									"<div class='course-intro'>"+
										"<h3>"+result[i].title+"</h3>"+
										"<span class='l'>"+result[i].desb+"</span>"+          
									"</div>"+      
								"</div>"+
							"</a>"+
						"</div>";
				}
				$("#main_item").html(html);
			} else {
				
			}
		},
		error : function(jqXHR, textStatus, errorThrown) {
		}
	});	
</script>


</html>